#include "stm32f10x.h"
// s->GPIOB12
#define GPIO_BEEP_RCC  RCC_APB2Periph_GPIOB
#define GPIO_BEEP_PORT GPIOB//选择GPIOB寄存器
#define GPIO_BEEP_PIN  GPIO_Pin_12 //引脚13
#define BEEP PBout(12)	// BEEP,蜂鸣器接口

void BEEP_init(void);
void alarm(void);
void Sound(u16 frq);
void Sound2(u16 time);
void play_music(unsigned int *tone, unsigned char *music,unsigned char *time);
void play_successful(void);
void play_failed(void);
